from kivy.app import App
from kivy.uix.button import Button

class MYapp(App):
    def build(self):
        return Button(text="click me",on_press=lambda e:print("button clicked"))

if __name__ == '__main__':
    MYapp().run()